home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-04-23 | 1.7 KB | 43 lines | [TEXT/CWIE] |
- //
- // LEGAL NOTICE
- // ============
- //
- // You may incorporate this sample code into your applications
- // without restriction. This sample code has been provided "AS
- // IS" and the responsibility for its operation is 100% yours.
- // You are not permitted to redistribute the source as "Apple
- // sample code" after having made changes. If you're going to
- // re-distribute the source, we require that you make it clear
- // in the source that the code was descended from Apple sample
- // code, but that you've made changes.
- //
-
- #pragma once
-
- #ifndef __DRAG__
- # include <Drag.h>
- #endif
-
- enum
- {
- kPromisedFlavor = 'fssP',
- kPromisedFlavorFindFile = 'rWm1'
- };
-
- pascal OSErr GetDirID (const FSSpec *, long *dirID);
- pascal OSErr CreatePromisedFileOrFolder (const PromiseHFSFlavor *, const FSSpec *, ScriptCode);
- pascal OSErr MakeHFSFlavor (short vRefNum, long dirID, ConstStr255Param path, HFSFlavor *);
-
- pascal OSErr GetDropDirectory (DragReference, FSSpecPtr);
- pascal OSErr ShouldCopyToDropLoc (DragReference, FlavorType, Boolean *);
- pascal OSErr SetPromisedHFSFlavorData (DragReference, ItemReference,
- const PromiseHFSFlavor *, const FSSpec *);
- pascal OSErr AddDragItemFlavorTypePromiseHFS (DragReference, ItemReference,
- OSType fileType, OSType fileCreator, UInt16 fdFlags, FlavorType);
- pascal OSErr GetHFSFlavorFromDragReference (DragReference, ItemReference,
- HFSFlavor *);
- pascal OSErr ReceivePromisedFile (DragReference, ItemReference,
- HFSFlavor *, const FSSpec *folder);
-
- pascal OSErr BogusFinderEventHandler (const AppleEvent *theAppleEvent, AppleEvent *reply, long);
- pascal OSErr InstallBogusFinderEventHandler (void);